public class PlayerInventory
{
	public enum Item
	{
		EasyModeItem = 0,
		MediumModeItem = 1,
		HardModeItem = 2,
		NoAds = 3,
		Trainer = 4
	}

	private static PlayerInventory instance_;

	private OwnedItems owned;

	public static PlayerInventory instance
	{
		get
		{
			if (instance_ == null)
			{
				instance_ = new PlayerInventory();
			}
			return instance_;
		}
	}

	public PlayerInventory()
	{
		owned = new OwnedItems("playerInventory.bytes");
	}

	public void buyItem(Item item, bool canStockpile)
	{
		owned.addToOwned(item.ToString(), canStockpile);
	}

	public void buyItem(string name, bool canStockpile)
	{
		owned.addToOwned(name, canStockpile);
	}

	public bool isOwned(Item item)
	{
		return owned.isOwned(item.ToString());
	}

	public bool isOwned(string name)
	{
		return owned.isOwned(name);
	}

	public void RemoveSingleItem(string name)
	{
		owned.RemoveOneItemFromOwned(name);
	}

	public int GetNumberOfItemsOwned(string name)
	{
		return owned.GetNumberOfItemsOwned(name);
	}

	public void ReloadModel()
	{
		owned.ReloadModel();
	}
}
